#include "StdAfx.h"
#include "Preprocessor.h"


VOID CPreprocessor::Run()
{
	while (1)
	{
		if (m_rController.NextIs("define"))
		{
			m_rController.ParseDefine();
		}
		else if (m_rController.NextIs("undef"))
		{
		}
		else
		{
			throw FALSE;
		}

		Switch();
	}
}


CPreprocessor::CPreprocessor(CMutualWorkerController &a_rController, CEvent &a_revOwn, CEvent &a_revOther) :
CMutualWorker(a_rController, a_revOwn, a_revOther)
{
}
